package cn.ticket.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.WorkseatreasonMapper;
import cn.ticket.model.Workseatreason;
import cn.ticket.service.WorkSeatReasonService;
@Service
public class WorkSeatReasonServiceImpl implements WorkSeatReasonService{

	@Autowired
	private WorkseatreasonMapper workSeatReasonMapper;
	@Override
	public int deleteByPrimaryKey(Byte id) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Workseatreason record) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.insert(record);
	}

	@Override
	public int insertSelective(Workseatreason record) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.insertSelective(record);
	}

	@Override
	public Workseatreason selectByPrimaryKey(Byte id) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Workseatreason record) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Workseatreason record) {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Workseatreason> getAll() {
		// TODO Auto-generated method stub
		return workSeatReasonMapper.getAll();
	}

}
